//
//  main.m
//  base_m_04
//
//  Created by China Dragon on 2023/1/25.
//

#import <Foundation/Foundation.h>
#import "Student.h"

int main(int argc, const char * argv[]) {//这个是C语言的main函数
    @autoreleasepool {
//        Student *stu = [[Student alloc]init];
//        Student *stu = [[Student alloc]initWithAge:20];
        Student *stu = [Student new];//相当于  [[Student alloc]init];，一般使用init, new后来才有的
        stu.age = 11;//等效下面的代码
//        [stu setAge:11];
        
        NSLog(@"age is %i ",stu.age);
        //age is 11
    }
    return 0;
}
